home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / misc / avmNfax1_33.lha / AVMSuite / source / answervoice.avmsrc < prev    next >
Text File  |  1994-06-24  |  6KB  |  269 lines

  1. startrecord=true
  2. label=
  3. nodetype=7
  4. filename=avm:rexx/stdhead.avm
  5. nextactiontype=3
  6. nextactionaction=
  7. endrecord=true
  8. startrecord=true
  9. label=
  10. nodetype=8
  11. line1=introtype = getclip('AVMIntroductionType')
  12. line2=if upper(introtype) = 'DAYOFWEEK' then
  13. line3=  intronumber = dayofweek2num()
  14. line4=else if upper(introtype) = 'TIMEOFDAY' then
  15. line5=  intronumber = timeofday2num()
  16. line6=else if upper(introtype) = 'RANDOM' then
  17. line7=  intronumber = random(1,7, time('s'))
  18. line8=else if introtype = "" then
  19. line9=  intronumber = 1
  20. line10=else intronumber = introtype
  21. nextactiontype=2
  22. nextactionaction=signal value 'avintro' || intronumber
  23. endrecord=true
  24. startrecord=true
  25. label=answervoiceStart
  26. nodetype=8
  27. line1=parse arg servername faxscript datascript distinctivering 'CID$' acidname '$' acidnumber '$'
  28. line2=call setclip(address() || 'FAXSCRIPT', faxscript)
  29. line3=call setclip(address() || 'DATASCRIPT', datascript)
  30. line4=call setclip(address() || 'CIDNAME', acidname)
  31. line5=call setclip(address() || 'CIDNUMBER', acidnumber)
  32. line6=
  33. line7=
  34. line8=
  35. line9=
  36. line10=
  37. nextactiontype=3
  38. nextactionaction=
  39. endrecord=true
  40. startrecord=true
  41. label=startup
  42. nodetype=8
  43. line1=
  44. line2=simple = getclip('AVMSimpleAnsweringMachine')
  45. line3=if upper(simple) = 'YES' then call simplestartup
  46. line4=else call multistartup
  47. line5=
  48. line6=
  49. line7=
  50. line8=
  51. line9=
  52. line10=
  53. nextactiontype=2
  54. nextactionaction=exit
  55. endrecord=true
  56. startrecord=true
  57. label=answervoiceDone
  58. nodetype=1
  59. filename='avm:voices/Goodbye'
  60. comment=Thanks for calling.  Bye now!
  61. keyactiontype=3
  62. keyactionaction=
  63. faxactiontype=0
  64. faxactionaction=stdfax
  65. dataactiontype=0
  66. dataactionaction=stddata
  67. busyactiontype=0
  68. busyactionaction=stdbusy
  69. abortactiontype=0
  70. abortactionaction=stdabort
  71. erroractiontype=0
  72. erroractionaction=stderror
  73. nextactiontype=2
  74. nextactionaction=exit
  75. endrecord=true
  76. startrecord=true
  77. label=
  78. nodetype=7
  79. filename=avm:rexx/stdtail.avm
  80. nextactiontype=3
  81. nextactionaction=
  82. endrecord=true
  83. startrecord=true
  84. label=
  85. nodetype=7
  86. filename=avm:rexx/startup.avm
  87. nextactiontype=3
  88. nextactionaction=
  89. endrecord=true
  90. startrecord=true
  91. label=
  92. nodetype=7
  93. filename=avm:rexx/simplestartup.avm
  94. nextactiontype=3
  95. nextactionaction=
  96. endrecord=true
  97. startrecord=true
  98. label=timeOfDay2num
  99. nodetype=8
  100. line1=currentHours = time('hours')
  101. line2=if currentHours < 12 then ret = 1
  102. line3=else if currentHours < 18 then ret = 2
  103. line4=else ret = 3
  104. line5=
  105. line6=
  106. line7=
  107. line8=
  108. line9=
  109. line10=
  110. nextactiontype=2
  111. nextactionaction=return ret
  112. endrecord=true
  113. startrecord=true
  114. label=dayOfWeek2num
  115. nodetype=8
  116. line1=day = date('Weekday')
  117. line2=if day = 'Monday' then ret = 1
  118. line3=else if day = 'Tuesday' then ret = 2
  119. line4=else if day = 'Wednesday' then ret = 3
  120. line5=else if day = 'Thursday' then ret = 4
  121. line6=else if day = 'Friday' then ret = 5
  122. line7=else if day = 'Saturday' then ret = 6
  123. line8=else ret = 7
  124. line9=
  125. line10=
  126. nextactiontype=2
  127. nextactionaction=return ret
  128. endrecord=true
  129. startrecord=true
  130. label=avintro1
  131. nodetype=1
  132. filename='avm:voices/intro1'
  133. comment=Monday voice message or good morning voice message.
  134. keyactiontype=3
  135. keyactionaction=
  136. faxactiontype=0
  137. faxactionaction=stdfax
  138. dataactiontype=0
  139. dataactionaction=stddata
  140. busyactiontype=0
  141. busyactionaction=stdbusy
  142. abortactiontype=0
  143. abortactionaction=stdabort
  144. erroractiontype=3
  145. erroractionaction=
  146. nextactiontype=0
  147. nextactionaction=answervoiceStart
  148. endrecord=true
  149. startrecord=true
  150. label=avintro2
  151. nodetype=1
  152. filename='avm:voices/intro2'
  153. comment=Tuesday voice message or good afternoon voice message.
  154. keyactiontype=3
  155. keyactionaction=
  156. faxactiontype=0
  157. faxactionaction=stdfax
  158. dataactiontype=0
  159. dataactionaction=stddata
  160. busyactiontype=0
  161. busyactionaction=stdbusy
  162. abortactiontype=0
  163. abortactionaction=stdabort
  164. erroractiontype=3
  165. erroractionaction=
  166. nextactiontype=0
  167. nextactionaction=answervoiceStart
  168. endrecord=true
  169. startrecord=true
  170. label=avintro3
  171. nodetype=1
  172. filename='avm:voices/intro3'
  173. comment=Wednesday voice message or good evening voice message.
  174. keyactiontype=3
  175. keyactionaction=
  176. faxactiontype=0
  177. faxactionaction=stdfax
  178. dataactiontype=0
  179. dataactionaction=stddata
  180. busyactiontype=0
  181. busyactionaction=stdbusy
  182. abortactiontype=0
  183. abortactionaction=stdabort
  184. erroractiontype=3
  185. erroractionaction=
  186. nextactiontype=0
  187. nextactionaction=answervoiceStart
  188. endrecord=true
  189. startrecord=true
  190. label=avintro4
  191. nodetype=1
  192. filename='avm:voices/intro4'
  193. comment=Thursday voice message.
  194. keyactiontype=3
  195. keyactionaction=
  196. faxactiontype=0
  197. faxactionaction=stdfax
  198. dataactiontype=0
  199. dataactionaction=stddata
  200. busyactiontype=0
  201. busyactionaction=stdbusy
  202. abortactiontype=0
  203. abortactionaction=stdabort
  204. erroractiontype=3
  205. erroractionaction=
  206. nextactiontype=0
  207. nextactionaction=answervoiceStart
  208. endrecord=true
  209. startrecord=true
  210. label=avintro5
  211. nodetype=1
  212. filename='avm:voices/intro5'
  213. comment=Friday voice message.
  214. keyactiontype=3
  215. keyactionaction=
  216. faxactiontype=0
  217. faxactionaction=stdfax
  218. dataactiontype=0
  219. dataactionaction=stddata
  220. busyactiontype=0
  221. busyactionaction=stdbusy
  222. abortactiontype=0
  223. abortactionaction=stdabort
  224. erroractiontype=3
  225. erroractionaction=
  226. nextactiontype=0
  227. nextactionaction=answervoiceStart
  228. endrecord=true
  229. startrecord=true
  230. label=avintro6
  231. nodetype=1
  232. filename='avm:voices/intro6'
  233. comment=Saturday voice message.
  234. keyactiontype=3
  235. keyactionaction=
  236. faxactiontype=0
  237. faxactionaction=stdfax
  238. dataactiontype=0
  239. dataactionaction=stddata
  240. busyactiontype=0
  241. busyactionaction=stdbusy
  242. abortactiontype=0
  243. abortactionaction=stdabort
  244. erroractiontype=3
  245. erroractionaction=
  246. nextactiontype=0
  247. nextactionaction=answervoiceStart
  248. endrecord=true
  249. startrecord=true
  250. label=avintro7
  251. nodetype=1
  252. filename='avm:voices/intro7'
  253. comment=Sunday voice message.
  254. keyactiontype=3
  255. keyactionaction=
  256. faxactiontype=0
  257. faxactionaction=stdfax
  258. dataactiontype=0
  259. dataactionaction=stddata
  260. busyactiontype=0
  261. busyactionaction=stdbusy
  262. abortactiontype=0
  263. abortactionaction=stdabort
  264. erroractiontype=3
  265. erroractionaction=
  266. nextactiontype=0
  267. nextactionaction=answervoiceStart
  268. endrecord=true
  269.